<?php

/**
 * Description of Exception_Redirect
 *
 * @author a.novikov
 */
class Exception_Redirect extends Exception_Public {

	/**
	 *
	 * @var string
	 */
	protected $location;

	/**
	 *
	 * @return string
	 */
	public function getLocation() {
		return $this->location;
	}


	public function __construct($location, $msg = 'Redirect', $code = 0, Exception $previous = null) {
		$this->location = $location;
		parent::__construct($msg, $code, $previous);
	}
}